import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/admin_api/account/login/',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/admin_api/account/admin_info/',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/admin_api/v1/account/auth/user/logout',
    method: 'get'
  })
}

export function getApplication() {
  return request.get('/admin_api/v1/account/user/application/')
}
